From: Roan Kattouw Date: Mon, 18 Oct 2010 20:16:19 +0000 (+0000) Subject: ResourceLoader: Clear warnings before echo'ing output X-Git-Tag: 1.31.0-rc.0~34436 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=50c319ef09d0046b2fbc390ffcfdd100e021fb44;p=lhc%2Fweb%2Fwiklou.git ResourceLoader: Clear warnings before echo'ing output --- diff --git a/includes/ResourceLoader.php b/includes/ResourceLoader.php index 49fb2f1d0e..1d4a202229 100644 --- a/includes/ResourceLoader.php +++ b/includes/ResourceLoader.php @@ -300,7 +300,10 @@ class ResourceLoader { return; } - echo $this->makeModuleResponse( $context, $modules, $missing ); + $response = $this->makeModuleResponse( $context, $modules, $missing ); + // Clear any warnings from the buffer + ob_clean(); + echo $response; wfProfileOut( __METHOD__ ); }